package com.globant.controllers;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

public class HelloController implements Controller {
	public ModelAndView handleRequest(HttpServletRequest request,HttpServletResponse response) throws Exception {
		Integer a = Integer.parseInt(request.getParameter("a"));
		Integer b = Integer.parseInt(request.getParameter("b"));
		return new ModelAndView("result","result",a+b);
	}
}